import common from '@/common.js';

// 获取推荐人地址
export function getTjrAddress(phone) {
	return new Promise((resolve, reject) => {
	    common.request('mallApiGt/p/user/getTjrAddress', {
	    	phone : phone
	    }, function(res) {
	    	resolve(res.data);
	    })
	});
}

// 根据区域获取街道
export function getStreetByArea(areaId,phone) {
	return new Promise((resolve, reject) => {
	    common.request('mallApiGt/p/user/getStreet', {
	    	"areaId": areaId,
			"phone": phone
	    }, function(res) {
			console.log("res",res);
	    	resolve(res.data);
	    })
	});
}